@echo off
echo 检查在线用户...

echo 1. 获取在线用户列表...
powershell -Command "try { $response = Invoke-RestMethod -Uri 'http://localhost:8080/api/user/online-users' -Method GET; Write-Host '在线用户:'; $response | ConvertTo-Json -Depth 3 } catch { Write-Host 'Error:' $_.Exception.Message }"

echo.
echo 2. 获取所有用户列表...
powershell -Command "try { $response = Invoke-RestMethod -Uri 'http://localhost:8080/api/user/users' -Method GET; Write-Host '所有用户:'; $response | ConvertTo-Json -Depth 3 } catch { Write-Host 'Error:' $_.Exception.Message }"

echo.
echo 检查完成！
pause
